<!-- search area   -->
<div class="row searchLineWrap">
	<form class="form-horizontal" method="post" action="${cxt!}/admin/customerReviews/list" id="customerReviewsForm">
		<div class="col-md-12">
			<div class="row">
				<div class="col-md-3">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["customer.reviews.invitecode"]}</label>
						<div class="col-md-7">
						<input type="text" class="form-control" name="customer.f_invitecode" placeholder="${_res['customer.reviews.invitecode']}" value="${paramMap['customer.f_invitecode']}" />
						</div>
					</div>
				</div>

				<div class="col-md-3">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["advert.startTime"]}</label>
						<div class="col-md-7">
							<input placeholder="${_res['advert.startTime']}" class="form-control layer-date laydate-icon" onclick="laydate()" name="customerReviews.gt_evaluationtime" value="${paramMap['customerReviews.gt_evaluationtime']}">
						</div>
					</div>
				</div>			
				
				<div class="col-md-3">
					<div class="form-group">
						<label class="col-md-5 control-label">${_res["advert.endTime"]}</label>
						<div class="col-md-7">
							<input placeholder="${_res['advert.endTime']}" class="form-control layer-date laydate-icon" onclick="laydate()" name="customerReviews.le_evaluationtime" value="${paramMap['customerReviews.le_evaluationtime']}">
						</div>
					</div>
				</div>			
			
				<div class="col-md-3">
					<div class="form-group">
						<% if(hasPrivilegeUrl("customerReviews")){ %>
						   <button type="button" class="btn btn-primary" onclick="ajaxForm('content','customerReviewsForm')"> <i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}</button>
						<% } %>
					</div>
				</div>
			</div>
		</div>
	</form>
</div>
<!-- search area end  -->

<div class="row searchLineWrap">
	<table class="table table-bordered">
		<thead>
			<tr>
				<th>${_res["customer.reviews.invitecode"]}</th>
				<th>${_res["customer.reviews.userName"]}</th>
				<th>${_res["customer.reviews.appraiserName"]}</th>
				<th>${_res["customer.reviews.star"]}</th>
				<th>${_res["customer.reviews.evaluationtime"]}</th>
				<th>${_res["customer.reviews.evaluationContent"]}</th>
				<th>${_res["system.operator"]}</th>
			</tr>
		</thead> 
		<tbody>
			<% for(customerReviews in customerReviewsList!){ %>
			<tr>
				<td>${customerReviews.invitecode!}</td>
				<td>
					<% if (!isEmpty(customerReviews.nickname)) {%>
						${customerReviews.nickname!}
					<% }else { %>
						${customerReviews.firstname!}
					<% } %>					
					${customerReviews.lastname!}
				</td>
				
				<td>${customerReviews.appraiserName!}</td>
				<td>${customerReviews.star!}</td>
				<td>${customerReviews.evaluationtime!,dateFormat="yyyy-MM-dd HH:mm"}</td>
				<td>${customerReviews.evaluationContent!}</td>
				<td>
					<% if(hasPrivilegeUrl("reviewsDelete")){ %>
						<button type="button" class="btn btn-sm btn-link" onClick="ajaxDelete('/admin/customerReviews/delete/${customerReviews.id!}')">${_res["system.delete"]}</button>
					<% } %>
				</td>
			</tr>
			<% } %>
		</tbody>
	</table>
	<div id="splitPageDiv"><#page formId="customerReviewsForm" /></div>
	<#nav />
</div>